import request from '@/utils/request'
// baseURL: "http://localhost:8081/"
import qs from "qs"

export let getlist = (params) => {
    return request({
        url: "/classify/getlist",
        method: "get",
        params: params || {},
        baseURL: "http://localhost:8081"
    })
}

export let addlist = (data) => {
    return request({
        url: "/classify/postlist",
        method: "post",
        data: qs.stringify(data),
        baseURL: "http://localhost:8081"
    })
}

export let updatelist = (data) => {
    return request({
        url: "/classify/update",
        method: "post",
        data: qs.stringify(data),
        baseURL: "http://localhost:8081"
    })
}

export let deletelist = (id) => {
    return request({
        url: "/classify/delete",
        method: "get",
        params: { id },
        baseURL: "http://localhost:8081"
    })
}